(() => {
  class WavePoint {

    constructor (x = 0, y = 0, z = 0, r = 1) {
      this.x = x;
      this.originX = x;
      this.y = y;
      this.z = z;
      this.r = r;
      this.drawX = x;
      this.drawY = y;
    }
  
    draw (ctx) {
      ctx.beginPath();
      ctx.arc(this.drawX, this.drawY, this.r, 0, Math.PI * 2, false);
      ctx.closePath();
      ctx.fill();
    }
  }

  window.WavePoint = WavePoint;
})();